﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Patient/PatientMaster.Master" AutoEventWireup="true" CodeBehind="ViewConsult.aspx.cs" Inherits="MyHealthOnline.Patient.ViewConsult" %>
<%@ Register Src="~/Patient/QuestionList.ascx"  TagPrefix="uc" TagName="QuestionList" %>
<%@ Register TagPrefix="uc" TagName="MessageHistory" Src="~/Common/ConsultHistory.ascx" %>
<%@ Register TagPrefix="uc" TagName="Appointments" Src="~/Common/Appointments.ascx" %>
<%@ Register TagPrefix="uc" TagName="End" Src="~/Common/EndConsult.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    View Consult
    <br />
    <uc:End id="ucEnd" runat="server"></uc:End>
    <br />
    <uc:Appointments ID="ucAppointments" runat="server"></uc:Appointments>    
    <br />
    <uc:MessageHistory id="ucMessageHistory" runat="server" />
    <br />
    <asp:UpdatePanel ID="updQuestions" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnBack" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnOpenQuestionnaire" EventName="Click" />
            
        </Triggers>
        <ContentTemplate>
    
            <asp:Panel id="pnlQuestionnaire" runat="server" Visible="false">
                Questionnaires:
                <br />
                <asp:RadioButtonList ID="rblQuestionnaires" runat="server" DataTextField="QuestionText" DataValueField="Id">
                </asp:RadioButtonList>
                <br />
                <asp:Label ID="lblNoQuestionnaires" runat="server" Visible="false"
                            Text="No Qustionnaires available"></asp:Label>
                <br />
                <asp:Button ID="btnOpenQuestionnaire" runat="server" OnClick="btnOpenQuestionnaire_Click" />
            </asp:Panel>
            <br />

            <uc:QuestionList ID="ucQuestions" runat="Server"></uc:QuestionList>
            <br />
            <asp:Panel runat="server" ID="pnlActions" DefaultButton="btnSave">
                <asp:Button ID="btnBack" Text="Back" runat="server" onclick="btnBack_Click" />
                <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
                <br />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    

</asp:Content>
